package demo1;

import demo1.Family;

public class Sister extends Family {

    int id = 120;//身份证号码

    //构造方法---无参
    public Sister() {
        super();//第一行必须要调用父类的构造
    }

    //带参构造方法
    public Sister(String name,int age,String home) {
        super(name,age,home);
    }


    //各自特有的
    public void homework() {
        System.out.println(name + "正在写作业");
    }

}

